// 自动生成模板SmsHomeSubjectSpu
package biz

import "github.com/go-kratos/kratos/v2/log"

// smsHomeSubjectSpu表 结构体  SmsHomeSubjectSpu
type SmsHomeSubjectSpu struct {
	Id        *int    `json:"id" form:"id" gorm:"primarykey;comment:id;column:id;size:19;"`              //id
	Name      *string `json:"name" form:"name" gorm:"comment:专题名字;column:name;size:200;"`                //专题名字
	SubjectId *int    `json:"subjectId" form:"subjectId" gorm:"comment:专题id;column:subject_id;size:19;"` //专题id
	SpuId     *int    `json:"spuId" form:"spuId" gorm:"comment:spu_id;column:spu_id;size:19;"`           //spu_id
	Sort      *int    `json:"sort" form:"sort" gorm:"comment:排序;column:sort;size:10;"`                   //排序
}

// TableName smsHomeSubjectSpu表 SmsHomeSubjectSpu自定义表名 sms_home_subject_spu
func (SmsHomeSubjectSpu) TableName() string {
	return "sms_home_subject_spu"
}

type SmsHomeSubjectSpuRepo interface {
}

type SmsHomeSubjectSpuUsecase struct {
	repo SmsHomeSubjectSpuRepo
	log  *log.Helper
}

func NewSmsHomeSubjectSpuUsecase(repo GreeterRepo, logger log.Logger) *SmsHomeSubjectSpuUsecase {
	return &SmsHomeSubjectSpuUsecase{repo: repo, log: log.NewHelper(logger)}
}
